

package com.bryanprogramming.zend.logic.powerups;

import com.bryanprogramming.zend.logic.ZEnd;

/**
 *
 * @author charlesbryan
 */
public abstract  class PowerUp implements Comparable<PowerUp> {
    protected String name;
    protected int cost;
    protected String description;
    protected ZEnd game;

    protected PowerUp(int cost, String name, ZEnd game) {
        this.cost = cost;
        this.name = name;
        this.game = game;
    }
    
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the cost
     */
    public int getCost() {
        return cost;
    }
    
    abstract public void usePowerUp(); 

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    @Override
    public int compareTo(PowerUp o) {
        return this.name.compareTo(o.name);
    }
    
    
    
}
